package jp.co.sn.mml.pojo.tsmenud;


public class TsmenudId implements java.io.Serializable { 

	//メニューコード
	private String menuCd;
	//列番号
	private Long colNo;
	//行番号
	private Long rowNo;

	/** default constructor */
	public TsmenudId(){

	}

	/** full constructor */
	public TsmenudId(String menuCd,Long colNo,Long rowNo){
		this.menuCd = menuCd;
		this.colNo = colNo;
		this.rowNo = rowNo;
	}

	//Property accessors
	public String getMenuCd(){
		return this.menuCd;
	}

	public void setMenuCd(String menuCd){
		this.menuCd=menuCd;
	}

	public Long getColNo(){
		return this.colNo;
	}

	public void setColNo(Long colNo){
		this.colNo=colNo;
	}

	public Long getRowNo(){
		return this.rowNo;
	}

	public void setRowNo(Long rowNo){
		this.rowNo=rowNo;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TsmenudId))
			return false;

		TsmenudId castOther = (TsmenudId) other;

		return ((this.getMenuCd() ==  castOther.getMenuCd())
				||(this.getMenuCd()!=null && castOther.getMenuCd() !=null 
					&& castOther.getMenuCd() !=null 
					&& this.getMenuCd().equals(castOther.getMenuCd())))
			&& ((this.getColNo() ==  castOther.getColNo())
				||(this.getColNo()!=null && castOther.getColNo() !=null 
					&& castOther.getColNo() !=null 
					&& this.getColNo().equals(castOther.getColNo())))
			&& ((this.getRowNo() ==  castOther.getRowNo())
				||(this.getRowNo()!=null && castOther.getRowNo() !=null 
					&& castOther.getRowNo() !=null 
					&& this.getRowNo().equals(castOther.getRowNo())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getMenuCd() == null ? 0 : this.getMenuCd().hashCode());
		result = 37 * result
				+ (getColNo() == null ? 0 : this.getColNo().hashCode());
		result = 37 * result
				+ (getRowNo() == null ? 0 : this.getRowNo().hashCode());
		return result;
	}

}